const { http } = uni.$u
// 获取菜单
export const http_getUserInfo = (params = {}) => http.get('/api/user/getUserInfo', params)
export const http_setUserInfo = (params, config = {}) => http.post('/api/user/saveUserInfo', params, config)
export const http_getUserPhoneFromMP = (params, config = {}) => http.post('/api/user/mpWeixinDecodePhone', params, config)
export const http_mpWeixinRegisterAndLogin = (params, config = {}) => http.post('/api/user/mpWeixinRegisterAndLogin', params, config)
export const http_mpToutiaoRegisterAndLogin = (params, config = {}) => http.post('/api/user/mpToutiaoRegisterAndLogin', params, config)
export const http_logout = (params, config = {}) => http.post('/api/user/logout', params, config)


export const http_uidesignpage = (params) => http.get('/api/page/uidesignpage', params)

export const http_homepage = (params) => http.get('/addons/company/api.page/indexpage', params)
export const http_websitedeveloppage = (params) => http.get('/addons/company/api.page/custonwebsitepage', params)
export const http_miniprogrampage = (params) => http.get('/addons/company/api.page/custonminiapp', params)
export const http_solutionlistpage = (params) => http.get('/addons/company/api.page/productlistpage', params)
export const http_solutiondetail = (params) => http.get('/addons/company/api.page/productDetail', params)
export const http_casepage = (params) => http.get('/addons/company/api.page/examplelistpage', params)
export const http_casedetail = (params) => http.get('/addons/company/api.page/exampledetail', params)
export const http_blogpage = (params) => http.get('/addons/company/api.page/sharelistpage', params)
export const http_blogdetail = (params) => http.get('/addons/company/api.page/shareDetail', params)
export const http_contactus = (params) => http.get('/addons/company/api.page/contactus', params)

export const http_jssdkConfig = (params, config = {}) => http.post('/addons/company/api.config/jssdkConfig', params, config)




export const http_syncLikeAndSave = (params, config = {}) => http.post('/api/user/syncLikeAndSave', params, config)
export const http_getMySavedExample = (params) => http.get('/api/user/mySavedExample', params)
export const http_getMySavedBlog = (params) => http.get('/api/user/mySavedBlog', params)
export const http_wechatBrowserRegisterAndLogin = (params) => http.get('/api/user/wechatBrowserRegisterAndLogin', params)

export const http_redpack = (params, config = {}) => http.post('/api/test/redpack', params, config)











